<?php
$context=stream_context_create(['http'=>[
    'header' =>'Cookie: PHPSESSID=51n2gi56bh4f0avbf4uqdqepo',
]]);
$html=file_get_contents(filename: 'http://localhost:8080/index.php',context:$context);
//echo $html;
preg_match_all('@<tr><td>(\d+)</td><td>([^<])</td><td>([^<])</td>@',$html,$m,PREG_SET_ORDER);
//print_r($m[0]);
foreach ($m as $user){
    echo "$user[1]\t$user[2]\t$user[3]\n";
}
